package stocks

import (
	"gitee.com/chenrh/finego/backends/middleware"
	"github.com/kataras/iris/v12"
	"github.com/kataras/iris/v12/mvc"
)

// RegisteRouters 注册路由
func RegisteRouters(app *iris.Application) {

	p := mvc.New(app.Party("/stocks"))
	p.Router.Use(middleware.PageIndexDataCheck)
	p.Router.Use(middleware.StocksNavMiddleware)
	// p.Router.Use(middleware.MustLoginCheck)

	p.Handle((new(StockIndex)))
	p.Handle(new(TodayController))
	p.Handle(new(PriceController))
	p.Handle(new(StockListController))
	p.Handle(new(StockWeighController))
	p.Handle(new(CalendarController))
	p.Handle(new(StockStrategyController))
	p.Handle(new(StockCenterController))
	p.Handle(new(StrockGroupController))
	p.Handle(new(StockNoticeController))
	p.Handle(new(StockSector))
}
